package com.course.web.model;

import com.course.domain.enums.TaskType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by Justin on 2017/6/9.
 */
@Data
@EqualsAndHashCode(of = {"id"})
public class CourseItemVM implements HasID {
    @Min(0)
    private int id;
    @Min(0)
    private final int courseId;
    @Min(0)
    private final int weekIdx;
    @Min(0)
    private final int weekDay;
    @Min(0)
    private final int partIdx;
    @Min(0)
    private int taskId;
    @NotNull
    private TaskType taskType;
}
